﻿#pragma once

#include "CoreMinimal.h"
#include "Engine/GameInstance.h"

#include "Study/Lib/Lib.h"

#include "PrimaryGameInstance.generated.h"

UCLASS()
class STUDY_API UPrimaryGameInstance : public UGameInstance
{
	GENERATED_BODY()


public:

	UPrimaryGameInstance();

	virtual void Init() override;

	virtual bool Tick(float DeltaSeconds);

private:

	UPROPERTY(EditInstanceOnly)
	ULib* Lib;

	FTickerDelegate TickerDelegate;

	FTSTicker::FDelegateHandle TickDelegateHandle;
};
